package com.cuit.mimall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuit.mimall.common.R;
import com.cuit.mimall.entity.Product;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author TeaWu
 * @since 2023-07-02
 */
public interface IProductService extends IService<Product> {

    R<?> getAll(Integer pageNum, Integer pageSize);

    R<?> add(Product product);

    R<?> update(Product product);

    R<?> delete(Integer[] ids);

    R<?> getProductsByCategory(Integer categoryId, Integer pageNum, Integer pageSize);

    List<Integer> selectIds();

}
